<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>一朵 - 我的支付码</title>
  <!-- swiper-2.7css -->
  <link rel="stylesheet" href="__STATIC__/index/js/swiper/idangerous.swiper.css">
  <!-- swiper-2.7js -->
  <script src="__STATIC__/index/js/swiper/idangerous.swiper.min.js"></script>
  <!-- jquery-3.2.1引用 -->
  <script src="__STATIC__/index/js/global/jquery-3.2.1.min.js"></script>
  <!-- 阿里巴巴矢量图库 -->
  <link rel="stylesheet" href="http://at.alicdn.com/t/font_561814_t3316kgx96kcsor.css">
  <!-- 公共头部 脚部 -->
  <link rel="stylesheet" href="__STATIC__/index/css/global/global.css">
  <!-- 超过959屏幕 -->
  <link rel="stylesheet" media="screen and (min-width: 960px)" href="__STATIC__/index/css/bar/bar960.css" />
  <!-- 768-959 -->
  <link rel="stylesheet" media="screen  and (min-width: 768px) and (max-width: 959px) " href="__STATIC__/index/css/bar/bar768.css"
  />
  <!-- 568-767 -->
  <link rel="stylesheet" media="screen  and (min-width: 568px) and (max-width: 767px) " href="__STATIC__/index/css/bar/bar568.css"
  />
  <!-- 375-567 -->
  <link rel="stylesheet" media="screen  and (min-width: 375px) and (max-width: 567px) " href="__STATIC__/index/css/bar/bar375.css"
  />
  <!-- 小于375-->
  <link rel="stylesheet" media="screen  and (max-width: 374px) " href="__STATIC__/index/css/bar/bar320.css" />
</head>

<body>
  <div class="M">
    <div class="m-header">
      <span onclick="go_back();">
        <span class="iconfont icon-xiangzuo"></span>
        返回
      </span>
      <span>支付码</span>
      <span>
        {if condition="!empty($realname)"}
        <a href="{:url('User/index')}" class="my">
          {$realname}
        </a>
        {else /}
        <a href="{:url('Login/loginin')}">登录</a>
        <a href="{:url('Login/register')}">登录</a>
        {/if}
        <a href="{:url('MyCart/my_cart')}" class="car">
          <span class="iconfont icon-gouwuche"></span>
          <span>{$cart_num}</span>
        </a>
      </span>
    </div>
    <p>请将条形码出示给服务员</p>
    <div class="yard">
      <p class="bojin">
        <img src="{$level_info.logo}" alt="">
        <span>{$level_info.title}</span>
      </p>
      <p class="pay">支付码</p>
      <img src="{:url('User/create_paycode')}" alt="" class="pay-img">
      <div class="money" style="margin-top: 20px;">
        余额：{$user.user_money}
      </div>
    </div>
    <a href="{:url('User/recharge')}" class="recharge">
      充值
    </a>
  </div>
  <div class="PC">
    <img src="__STATIC__/index/img/global/phone.png" alt="">
    <p>该页面只支持移动端的提示页面</p>
    <a href="{:url('User/index')}">返回</a>
  </div>
</body>

</html>
<script>
  /**
   * 返回上一页
   */
  function go_back() {
    window.history.back(); //返回上一页

  }
</script>